import matplotlib.pyplot as plt
import numpy as np
import cv2

img = cv2.imread("./images/lena.jpg", cv2.IMREAD_GRAYSCALE)

gray_img = img / 256

gray_img = 256 * (0.2 * np.log(1 + gray_img))

cv2.imshow('', gray_img)
cv2.waitKey()